package sv.com.renacempleo.dao.ctg;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Projections;

import sv.com.renacempleo.dao.BaseDaoImpl;
import sv.com.renacempleo.dto.ctg.CtgEstadoVacanteVinculacion;
import sv.com.renacempleo.exception.WebException;

public class CtgEstadoVacanteVinculacionDaoImpl extends BaseDaoImpl implements CtgEstadoVacanteVinculacionDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<Object[]> findAllActivesAsArray() throws WebException {
		DetachedCriteria criteria = DetachedCriteria.forClass(CtgEstadoVacanteVinculacion.class);
		criteria.setProjection(Projections.projectionList()
				.add(Projections.property("ctgEstadoVacanteVinculacionId"))
				.add(Projections.property("ctgEstadoVacanteVinculacionNombre"))
			);
		return (List<Object[]>) findByCriteria(criteria);
	}

	@Override
	public List<Object[]> findAllAsArray() throws WebException {
		// TODO Auto-generated method stub
		return null;
	}


}
